﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.Marketing.Request
{
    /// <summary>
    /// 删除商品专题
    /// yun.goods.subject.delete
    /// </summary>
    public class DeleteSubjectRequest : ITopRequest<BoolResultResponse>
    {

        public string GetApiName()
        {
            return "yun.goods.subject.delete";
        }

        /// <summary>
        /// 专题ID
        /// </summary>
        public int SubjectId { get; set; }

        public void Validate()
        {
            RequestValidator.ValidateRequired("subjectid", SubjectId);
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"subjectid", SubjectId}
            };
            return parameters;
        }
    }
}
